﻿@{
    ViewBag.Title = ("Common:SiteTitle".GetResourceText());
    int daysLeft = (int)(new DateTime(2012, 10, 26).Subtract(DateTime.Today).TotalDays);
    if(daysLeft < 0)
    {
        daysLeft = 0;
    }

    List<tb_top_navigation> topNavList = (List<tb_top_navigation>)ViewData["TopNavigation"];
    int index = 0;
    tb_article firstArticle;
    if (ViewBag.ImageNews != null && ViewBag.ImageNews.Count > 0)
    {
        firstArticle = ViewBag.ImageNews[0];
    }
    else
    {
        firstArticle = new tb_article();
    }
}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>@ViewBag.Title</title>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
    <link rel="stylesheet" type="text/css" href="/images/global.css" />
    <script language="javascript" src="/js/changimages.js" type="text/javascript"></script>
    <script language="javascript" src="/js/jquery.js" type="text/javascript"></script>
    <script language="javascript" src="/js/public.js" type="text/javascript"></script>
</head>
<body>
    <div id="container">
        <div id="top">
            <div class="toplink">
                <div style="text-align: right; margin-bottom: 5px">
                    <input class="topbtn1" value="登 陆" type="button" onclick="location.href='/Home/Login'" />
                    <input class="topbtn1" value="注 册" type="button" onclick="location.href='/Account/Register'" />
                    <input class="topbtn1" style="width:120px;" value="会务材料共享中心" type="button" onclick="location.href='http://document.cccifair.org'" />
                </div>

            </div>
            <div class="nav">
                <ul>
                    <li class="green"><a href="/about">文博会概况</a></li>
                    <li class="blue"><a href="/services">展客商服务</a></li>
                    <li class="yellow"><a href="/investment">文化产业项目发布</a></li>
                </ul>
                <div class="clear1">
                </div>
            </div>
        </div>
        <div class="index1">
            <div class="news1 left">
                <div style="width: 620px; height: 34px; margin: 0; padding: 0">
                    <div class="link btn1">
                        重要新闻</div>
                    <div class="link btn11" onclick="location.href='/news'" style="cursor:pointer">
                        进入新闻中心</div>
                </div>
                <div class="clear1">
                </div>
                <div class="ct">
                    <div class="left" id="imgADPlayer">

                    </div>
                    <div class="right" id="txtPlayer">
                        <div class="title">
                            <a href="/article/@firstArticle.Id">@firstArticle.GetTitle()</a>
                        </div>
                        <div class="article">
                            @(ViewHelper.GetSummary(firstArticle))
                        </div>
                        <div class="more">
                            <a href="/article/@firstArticle.Id">更多&gt;</a></div>
                    </div>
                    <div class="clear1">
                    </div>
                </div>
            </div>
            
            <script type="text/javascript">
                @foreach (var data in ViewBag.ImageNews)
                {
                    @:PImgPlayer.addItem("@(((tb_article)data).GetTitle())", "/article/@data.Id", "@data.PicUrl");
                    @:PImgPlayer.addArticle("@(((tb_article)data).GetTitle())", "@(ViewHelper.GetSummary((tb_article)data))", "/article/@data.Id", "@("Common:More".GetResourceText())");
                }
                PImgPlayer.init("imgADPlayer", 300, 130);   
            </script>
            <div class="service right">
                <div class="link btn2">
                    展 会 公 告</div>
                <div class="ct">
                    <ul>
                        @foreach (var data in @ViewBag.NoticeNews)
                        {
                            <li><a href="/article/@data.Id">@(((tb_article)data).GetTitle())</a></li>
                        }
                    </ul>
                    <div style="text-align: right; padding-top:130px">
                        <a href="/news/list/12" style="color: #D04461; font-size: 12px;">更多></a>
                    </div>
                    <div class="clear1">
                    </div>
                </div>
            </div>
            <div class="clear1">
            </div>
        </div>
        <div class="index2">
            <div style="width:715px; float:left">
            <div class="left">
                <div class="service2">
                    <div class="link btn4">
                        <div class="left">
                            文博会现场对接服务
                        </div>
                        <div class="right">
                            <a href="/about" style="color: #D04461; font-size: 12px;">更多></a>
                        </div>
                        <br class="clear1" />
                    </div>
                    <div class="ct">
                        <ul>
                        @foreach (var leftNavigation in CacheHelper<tb_left_navigation>.GetAll().Where(c => c.classid == 1 && c.parent == 0).OrderBy(c => c.DisplayOrder))
                        {
                            <li><a href="@leftNavigation.Url">@leftNavigation.GetTitle()</a></li>
                        }
                        </ul>
                        <div class="clear1">
                        </div>
                    </div>
                    <br />
                    <div class="ct_links">
                        <ul>
                          <li class="green"><a href="/Article/290" target="_blank">中国移动信息化服务</a></li>
                          <li class="green"><a href="/Article/292" target="_blank">中国电信信息化服务</a></li>
                          <li class="green"><a href="/Article/293" target="_blank">重要活动时间表</a></li>
                          <li class="green"><a href="/Article/291" target="_blank">论坛场次时间表</a></li>
                          <li class="green"><a href="/Article/294" target="_blank">推介会场次时间表</a></li>
                          <li class="green"><a href="/Article/295" target="_blank">参展单位互动活动列表</a></li>
                          </ul>
                        <div class="clear1"></div>
                    </div>
                <div class="clear1"></div>
                </div>
                @*<div class="goto">
                    <div class="link weibo">
                    </div>
                    <img src="/images/weibo_xxi.png">
                </div>*@
            </div>
            <div class="left left2">
                <div class="news2">
                    <div class="link btn2">
                        <div class="left">
                            新 闻 中 心</div>
                        <div class="right">
                            <a href="/news" style="color: #D04461; font-size: 12px;">更多></a>
                        </div>
                        <br class="clear1">
                    </div>
                    <div class="ct">
                        <ul>
                        @foreach (var data in ViewBag.OfficialNews)
                        {
                            <li><a href="/article/@data.Id">@(((tb_article)data).GetTitle())</a></li>
                        }
                        </ul>
                    </div>
                </div>
                <div class="news2">
                    <div class="link btn5">
                        <div class="left">
                            文化产业项目发布</div>
                        <div class="right">
                            <a href="/investment" style="color: #D04461; font-size: 12px;">更多></a>
                        </div>
                        <br class="clear1"/>
                    </div>
                    <div class="ct">
                        <ul>
                        @foreach (form_project data in ViewBag.Projects)
                        {
                            <li>
                            @if (!string.IsNullOrEmpty(data.ProjectType0))
                            {
                                @:[<a href="/project/list?subcategory=@data.ProjectType0.Split(',')[0]" class="redText">@data.GetProjectTypeName()</a>]
                            }
                                <a href="/project/detail/?id=@data.Id">@(data.Title)</a>
                            </li>
                        }
                        </ul>
                    </div>
                </div>
            </div>
            <div class="clear1"></div>
            <div style="border: solid 1px #DEDEDF; width:712px; height:100px; margin-top:6px; ">
                <a href="http://www.abchina.com/cn/branch/xmn/" target="_blank"><img src="/images/banner_abc.jpg" width="710px" height="100px" /></a>
            </div>
            </div>
            <div class="right right2">
                <div class="link btn2">
                    <div class="left">
                        活 动 列 表</div>
                    <div class="right">
                        <a href="/news/list/13" style="color: #D04461; font-size: 12px;">更多></a>
                    </div>
                    <br class="clear1">
                </div>
                <div class="ct">
                    <ul>
                    @foreach (var data in @ViewBag.ActivesNews)
                    {
                        <li><a href="/article/@data.Id">@(((tb_article)data).GetTitle())</a></li>
                    }
                    </ul>
                    <div class="clear1">
                    </div>
                </div>
                <div class="link btn2">
                    <div class="left_fenhuicang">
                        分 会 场</div>
                    <div class="right">
                        <a href="/news/list/11" style="color: #D04461; font-size: 12px;">更多></a>
                    </div>
                    <br class="clear1">
                </div>
                <div class="ct">
                    <ul>
            @foreach (var data in @ViewBag.BranchNews)
            {
                <li><a href="/article/@data.Id">@(((tb_article)data).GetTitle())</a></li>
            }
                    </ul>
                    <div class="clear1">
                    </div>
                </div>
            </div>
            <div class="clear1">
            </div>
        </div>
        <div class="jsbanner" style="border: 1px solid #DEDEDF; width:960px; height:120px">
            @*<a href="#">
                <img border="0" src="images/jj_01.jpg"></a> <a href="#">
                    <img border="0" src="images/jj_02.jpg"></a> <a href="#">
                        <img border="0" src="images/jj_03.jpg"></a> <a href="#">
                            <img border="0" src="images/jj_04.png"></a>*@
                            
            <div style=" BACKGROUND: url(/images/buton.gif) no-repeat center; width:240px; height:110px; float:left;">
                 <div style="margin-top:42px; margin-left: 25px;">
            <font style=" font-size:24px; color:#FFFFFF;FONT-FAMILY: "微软雅黑", "黑体", "宋体", sans-serif;">两岸创意城市论坛</font>
                 </div>

            </div>
            <div style=" BACKGROUND: url(/images/buton.gif) no-repeat center; width:240px; height:110px; float:left; cursor:pointer" onclick="window.open('http://www.ccdy.cn/zhuanti2011/hxmjys/node_7901.htm')">
              <div style="margin-top:28px;  text-align:center">
            <font style=" font-size:24px; color:#FFFFFF;FONT-FAMILY: "微软雅黑", "黑体", "宋体", sans-serif;">“金桥杯”<br/> 两岸民间艺术节</font>
                 </div>
            </div>
            <div style=" BACKGROUND: url(/images/buton.gif) no-repeat center; width:240px; height:110px; float:left; cursor:pointer" onclick="window.open('http://www.cybersousa.org/')">
            <div  style="margin-top:10px; margin-left:12px; float:left">
            <img src="/images/haitun.gif" width="92px" height="92px">
            </div>
            <div style="margin-top:40px;  text-align:center; float:left" >
            <font style=" font-size:16px; color:#FFFFFF;FONT-FAMILY: "微软雅黑", "黑体", "宋体", sans-serif;">第五届<br/> 厦门国际动漫节</font>
            </div>
            </div>

            <div style=" BACKGROUND: url(/images/buton.gif) no-repeat center; width:240px; height:110px; float:left; cursor:pointer" onclick="window.open('http://www.cuccdc.com/')">
            <div  style="margin-top:10px; margin-left:12px; float:left">
            <img src="/images/gaoxiao.gif" width="92px" height="92px">
            </div>
            <div style="margin-top:40px;  text-align:center; float:left" >
            <font style=" font-size:16px; color:#FFFFFF;FONT-FAMILY: "微软雅黑", "黑体", "宋体", sans-serif;">“农行杯”<br/> 高校创意设计大赛</font>
            </div>
        </div>
        <div class="index3">
            <div class="left canzhan">
                <div class="link btn2">
                    <div class="left">
                        重要参展商</div>
                    <div class="right">
                        <a href="/about/brands/companies" style="color: #D04461; font-size: 12px;">更多></a>
                    </div>
                    <br class="clear1">
                </div>
                <div class="ct">
                    <ul>
                    @foreach (var data in CacheHelper<tb_partner>.GetAll().Where(c=>c.Type == 0).Take(8))
                    {
                        <li>
                            <a href="@data.homepage" target="_blank" title="@data.name"><img src="@data.logo" alt="@data.name" width="115" height="50" /></a>
                        </li>
                    }
                    </ul>
                    <div class="clear1">
                    </div>
                </div>
            </div>
            <div class="right pro">
                <div class="link btn6">
                    <div class="left">
                        合作媒体</div>
                    <div class="right">
                        <a href="/about/brands/co_media" style="color: #D04461; font-size: 12px;">更多></a>
                    </div>
                    <br class="clear1">
                </div>
                <div class="ct">
                    <ul>
                        @foreach (var data in CacheHelper<tb_partner>.GetAll().Where(c => c.Type == 2).Take(8))
                        {
                        <li>
                            <a href="@data.homepage" target="_blank" title="@data.name"><img src="@data.logo" alt="@data.name" width="115" height="50" /></a>
                        </li>
                        }
                    </ul>
                    <div class="clear1">
                    </div>
                </div>
            </div>
            <div class="right pro">
                <div class="link btn6">
                    <div class="left">
                        推荐产品</div>
                    <div class="right">
                        <a href="/about/brands/products" style="color: #D04461; font-size: 12px;">更多></a>
                    </div>
                    <br class="clear1">
                </div>
                <div class="ct">
                    <ul>
                        @foreach (var data in CacheHelper<tb_partner>.GetAll().Where(c => c.Type == 1).Take(8))
                        {
                        <li>
                            <a href="@data.homepage" target="_blank" title="@data.name"><img src="@data.logo" alt="@data.name" width="115" height="50" /></a>
                        </li>
                        }
                    </ul>
                    <div class="clear1">
                    </div>
                </div>
            </div>
            <div class="clear1">
            </div>
        </div>@*
        <div class="friendlink">
            <div class="link">
                <div class="left btn1">
                    友情链接</div>
                <br class="clear1">
            </div>
            <div class="ct">
                <ul>
            @foreach (var data in CacheHelper<tb_partner>.GetAll().Take(9))
            {
            <li><a href="@data.homepage" target="_blank" title="@data.name">@data.name</a></li>
            }
                   
                </ul>
                <div class="clear1">
                </div>
            </div>
        </div>*@
        <div class="foot">
            <a href="#">关于我们</a> / <a href="#">联系我们</a> / <a href="#">广告服务</a> / <a href="#">版权说明</a>
            
        <p>版权所有Copyright &copy; 海峡两岸（厦门）文化产业博览交易会    闽ICP备10012700号</p>
        <p>如有网站使用疑问, 请联系 <a href="mailto:webservice@cccifair.org">webservice@cccifair.org</a></p>
        <p><a href="http://www.3535.cn/" target="_blank">海西服务器安全提供商：乐博软件</a></p>
        </div>
        
@if (!string.IsNullOrEmpty(TempData["message"] as string))
{
    <script>        alert('@TempData["message"]');</script>
}
    </div>
</body>
</html>
